#include <ioCC2530.h>

void clk_init(void)
{
  CLKCONCMD =0x00;   //32 MHz XOSC as system clock
  while (CLKCONSTA == 0X00);    //wait for the clk is done
}